/**************************************************************************
 *
 * Copyright 2014 MaeckySoft Ltd., Bludenz, Austria.
 * All Rights Reserved.
 *
 **************************************************************************/


#ifndef MCONFIGMANAGER_H
#define MCONFIGMANAGER_H

#include <map>
#include <M3DBase.h>

using namespace std;

class MConfigManager : M3DBase
{
    public:
		MConfigManager(int iDebug = 0,std::string sFilename = "");
        ~MConfigManager();
        int setFileName(std::string sFilename);
		std::string getFileName();
		int loadConfig();
		void printMethodInfo(std::string method);
		std::string getValue(char *skey);
		std::string getValue(std::string skey);
    protected:
    private:
        bool parseConfig(char *s);
		std::string m_sFilename;
		map<std::string, std::string> map_config;
};

#endif // MCONFIGMANAGER_H
